package cn.analysys.controller;
import cn.analysys.dao.ad.BehaviorDictMapper;
import cn.analysys.model.BehaviorDict;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author jiangbang
 * @date 2017/4/17
 */
@RestController
@RequestMapping("/mybatis")
public class MybatisController {

    @Autowired
    private BehaviorDictMapper behaviorDictMapper;

    @RequestMapping(value={"/getBehaviorDict"}, method= RequestMethod.GET)
    public BehaviorDict getBehaviorDict(String name) {
        BehaviorDict behaviorDict =  behaviorDictMapper.findByName(name);
        return behaviorDict;
    }


}
